package com.macro.mall.portal.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.macro.mall.mapper.BmsTodayMorningExpressMapper;
import com.macro.mall.model.BmsTodayMorningExpress;
import com.macro.mall.portal.service.BmsTodayMorningExpressService;
import com.macro.mall.query.BmsTodayMorningExpressQuery;

@Service
public class BmsTodayMorningExpressServiceImpl implements BmsTodayMorningExpressService {

    @Autowired
    private BmsTodayMorningExpressMapper bmsTodayMorningExpressMapper;

    /**
     * 根据id获取今日早报信息
     * 
     * @param id
     * @return
     */
    @Override
    public BmsTodayMorningExpress getOneTodayMorningExpress(Long id) {
        return bmsTodayMorningExpressMapper.selectById(id);
    }

    /**
     * 分页获取全部早报信息
     */
    @Override
    public List<BmsTodayMorningExpress> getAllTodayMorningExpress(BmsTodayMorningExpressQuery query) {
        List<BmsTodayMorningExpress> list = bmsTodayMorningExpressMapper.selectAll(query);
        return list;
    }

}
